let context = {};

function defineGetter(key, property) {
    // Object.defineProperty变种
    context.__defineGetter__(property, function() {
        return this[key][property];
    })
}

function defineSetter(key, property) {
    // Object.defineProperty变种
    context.__defineSetter__(property, function(val) {
        this[key][property] = val;
    })
}

defineGetter('response', 'body');
defineSetter('response', 'body')

module.exports = context;
